package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="PRT_SCHEME"
 *     
*/
public class PrtScheme implements Serializable {

    /** identifier field */
    private String schemeGuid;

    /** nullable persistent field */
    private String schemeTitle;

    /** nullable persistent field */
    private String schemeOwer;

    /** nullable persistent field */
    private String creater;

    /** nullable persistent field */
    private String remark1;

    /** nullable persistent field */
    private String remark2;

    /** nullable persistent field */
    private String remark3;

    /** nullable persistent field */
    private String remark4;

    /** full constructor */
    public PrtScheme(String schemeGuid, String schemeTitle, String schemeOwer, String creater, String remark1, String remark2, String remark3, String remark4) {
        this.schemeGuid = schemeGuid;
        this.schemeTitle = schemeTitle;
        this.schemeOwer = schemeOwer;
        this.creater = creater;
        this.remark1 = remark1;
        this.remark2 = remark2;
        this.remark3 = remark3;
        this.remark4 = remark4;
    }

    /** default constructor */
    public PrtScheme() {
    }

    /** minimal constructor */
    public PrtScheme(String schemeGuid) {
        this.schemeGuid = schemeGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="SCHEME_GUID"
     *         
     */
    public String getSchemeGuid() {
        return this.schemeGuid;
    }

    public void setSchemeGuid(String schemeGuid) {
        this.schemeGuid = schemeGuid;
    }

    /** 
     *            @hibernate.property
     *             column="SCHEME_TITLE"
     *             length="50"
     *         
     */
    public String getSchemeTitle() {
        return this.schemeTitle;
    }

    public void setSchemeTitle(String schemeTitle) {
        this.schemeTitle = schemeTitle;
    }

    /** 
     *            @hibernate.property
     *             column="SCHEME_OWER"
     *             length="32"
     *         
     */
    public String getSchemeOwer() {
        return this.schemeOwer;
    }

    public void setSchemeOwer(String schemeOwer) {
        this.schemeOwer = schemeOwer;
    }

    /** 
     *            @hibernate.property
     *             column="CREATER"
     *             length="50"
     *         
     */
    public String getCreater() {
        return this.creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    /** 
     *            @hibernate.property
     *             column="REMARK1"
     *             length="100"
     *         
     */
    public String getRemark1() {
        return this.remark1;
    }

    public void setRemark1(String remark1) {
        this.remark1 = remark1;
    }

    /** 
     *            @hibernate.property
     *             column="REMARK2"
     *             length="300"
     *         
     */
    public String getRemark2() {
        return this.remark2;
    }

    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }

    /** 
     *            @hibernate.property
     *             column="REMARK3"
     *             length="500"
     *         
     */
    public String getRemark3() {
        return this.remark3;
    }

    public void setRemark3(String remark3) {
        this.remark3 = remark3;
    }

    /** 
     *            @hibernate.property
     *             column="REMARK4"
     *             length="500"
     *         
     */
    public String getRemark4() {
        return this.remark4;
    }

    public void setRemark4(String remark4) {
        this.remark4 = remark4;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("schemeGuid", getSchemeGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof PrtScheme) ) return false;
        PrtScheme castOther = (PrtScheme) other;
        return new EqualsBuilder()
            .append(this.getSchemeGuid(), castOther.getSchemeGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getSchemeGuid())
            .toHashCode();
    }

}
